POV-Ray : Newsgroups : povray.beta-test : Possable bug with light_groups, and media : Possable bug with light_groups, and media Server Time
4 Nov 2024 17:36:49 EST (-0500)
  Possable bug with light_groups, and media  
From: Matt
Date: 6 Oct 2001 19:13:42
Message: <3bbf9026@news.povray.org>
Duron 750, 512 Megs of SDRam, Win95B PovRay V3.5 beta 4
I'm not sure if this is a bug, or a limitation, but I couldn't find any
mention of it in the Docs.  I found that lights in a light_group simply
didn't effect media.  I mentioned this before but forgot my system details
(sorry).  I would realy like to know if this could be fixed, or if I've made
a mistake somewhere.

Heres an example of the problem.

///Example of light groups not working
///Displays a smoke ball lit by 1 red global light, but not the local blue
light in its light_group
///however ball beside it is lit proberly
camera {
    location    <0, +2.1, 15> look_at     <0.0, 0, 1>}


///strong red global light
light_source {
  <20, -40, 100>
  color rgb <3, 0, 0>
}


/*
///same light as in group, but uncomment this and it will work
light_source {
        <20, +40, 100>
        color rgb <0, 0.1, 1>*4
    }
*/

///my light group
light_group

    ///simple blue light for ball only
    light_source {
        <20, +40, 100>
        color rgb <0, 0.1, 1>*6  ///<---- set this as bright as you want, it
seems to ignore the light
    }
    ///simple ball
    sphere { -4,4 pigment {rgb <0.1,0.1,0.1>} finish {ambient 0.1 diffuse
0.6}
    }
    ///smoke ball
    sphere { 0,4 pigment {rgbf 1} finish {ambient 0 diffuse 0}
    interior

        media {
            method 2  ///method 1,2 and 3 share same problem
            scattering {5,1 eccentricity .67}
        }
    }
    hollow
    }
///use that red light as well
global_lights on
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.